package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.MailSetBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface MailSetService extends BaseService<MailSetBean> {

	MailSetBean getMailSetBeanById(String id) throws Exception;
	
	void removeMailSetBeanById(String id) throws Exception;
	
	void removeMailSetBeanByIds(String ids) throws Exception;
	
	MailSetBean saveMailSetBean(MailSetBean crm) throws Exception;
	
	MailSetBean updateMailSetBean(MailSetBean crm) throws Exception;
	
	Page<MailSetBean>  findMailSetBeanByCond(MailSetBean bean,
			Page<MailSetBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveMailSetBeanExt(String sql) throws Exception;

	String findMailSetBeanExtCreate(String tableName) throws Exception;

	String findMailSetBeanExtEdit(String tableName, String id)
			throws Exception;

	String findMailSetBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasMailSetBeanExtData(String tableName, String id)
			throws Exception;
}